from django.urls import path, re_path

from apps.user import views, login
from rest_framework_jwt.views import obtain_jwt_token

urlpatterns = [
    path('register/',views.RegisterView.as_view()),
    path('authorizations/', login.admin_jwt_token),
    path('re_password/',views.RepasswordView.as_view()),
    path('info/',views.UserInfoView.as_view()),
    path('update_info/',views.UpdateUserView.as_view()),
    path('addresses/create/', views.AddressCreateView.as_view()),
    path('addresses/', views.AddressView.as_view()),
    re_path('addresses/(?P<address_id>\d+)/', views.AddressRemoveView.as_view()),
]